function urlParams(a){
	if (a == "") return {};
    var b = {};
    for (var i = 0; i < a.length; ++i)
	    {
	        var p=a[i].split('=');
	        if (p.length != 2) continue;
	        b[p[0]] = decodeURIComponent(p[1].replace(/\+/g, " "));
	    }
    return b;
}


//http://127.0.0.1:8080/fgfk2/src/main/webapp/active/html/user.html?openid=o0c4Tv9h4quAF-dhGx1b2OKhG5Zo&userid=30
//window.location.search.substr(1).split('&')  先得到未分割的字符串 var url=[openid=o0c4Tv9h4quAF-dhGx1b2OKhG5Zo&userid=30]
//urlParams(url)     {'openid':'o0c4Tv9h4quAF-dhGx1b2OKhG5Zo','userid':30}
